Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Nov 3, 2025

Discourage embed component usage and fix broken links

Summary

Updated documentation to discourage using the <embed> component for all asset types (videos, PDFs, images) due to inconsistent browser support, particularly on Safari and mobile browsers. Added warnings and recommendations to use better alternatives: <video> component for videos, <Download> component for PDFs, and <img> tag for images. Also fixed broken links that pointed to incorrect URL paths.

Key changes:

  • Added prominent <Warning> callout at top of embed component page discouraging embed usage for all asset types
  • Fixed broken link from /learn/docs/content/write-markdown#embedding-videos/learn/docs/writing-content/markdown#local-videos
  • Updated video and PDF sections with <Note> callouts recommending better alternatives
  • Updated markdown.mdx page to discourage embed usage and fixed link to embed component page
  • Removed embed video example from markdown.mdx, replacing with video component example

Review & Testing Checklist for Human

  • Verify scope is correct - Confirm that discouraging <embed> for ALL asset types (not just videos) aligns with product direction. The original request was Safari-specific for videos, but this evolved to a blanket recommendation against embed.
  • Test on actual Safari - Verify on Safari desktop and iOS that embed actually has the compatibility issues documented. I haven't independently tested this.
  • Check all updated links - Navigate preview deployment and verify all updated links work correctly: /learn/docs/writing-content/markdown#local-videos and /learn/docs/writing-content/components/embed
  • Review tone/messaging - Confirm the strong warnings ("isn't recommended for use") align with actual product stance. Consider if showing embed examples after discouraging its use is confusing to users.
  • Test recommended alternatives - Verify that <video> component, <Download> component, and <img> tag work well as the recommended alternatives on various browsers.

Notes

  • The warnings are quite strong and apply to all use cases. If embed works fine for certain scenarios, we might want to soften the language or scope it more narrowly.
  • The embed component page still shows examples of how to use embed, which could be confusing after strongly discouraging its use. Consider if we should remove these examples or add context explaining they're legacy examples.
  • Link to Devin run: https://app.devin.ai/sessions/386ffce1ebeb43c78aa0301b9ed738fb
  • Requested by: Colton Berry (@coltondotio)

- Add warning to embed component page about Safari compatibility issues
- Recommend using <video> component instead for embedding videos
- Update markdown content page with same Safari warning
- Emphasize better cross-browser support with <video> component

Co-Authored-By: Colton Berry <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

- `<Download src="..." />` - read more about it [below](#downloadable-assets).

<Warning>
The `<embed>` component is not well-supported on Safari and may cause compatibility issues. For embedding videos, use the `<video>` component instead, which provides better cross-browser support and more control over playback.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Contractions] Use 'isn't' instead of 'is not'.

<embed src="./embed-fern-waving.mp4" type="video/mp4" width="640px" height="360px" />

<Warning>
The `<embed>` component is not well-supported on Safari and may cause compatibility issues. For embedding videos, use the `<video>` component instead (see below), which provides better cross-browser support and more control over playback.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] reported by reviewdog 🐶
[Microsoft.Contractions] Use 'isn't' instead of 'is not'.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

devalog and others added 2 commits November 4, 2025 13:23
- Update warnings to discourage embed for all asset types (not just videos)
- Recommend video component for videos, Download component for PDFs, img tag for images
- Fix broken link from /learn/docs/content/write-markdown to /learn/docs/writing-content/markdown
- Add notes to PDF and video sections with recommended alternatives
- Update markdown.mdx to be consistent with embed.mdx warnings

Co-Authored-By: Colton Berry <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants